let sum: (x:number,y:number) => number

const result = sum(1,2)

type  PlusType = (x:number,y:number) => number

let sum2: PlusType
const result2 = sum2(2,3)

type StrOrNumber = string | number

let result3 : StrOrNumber = '123'

result3 = 123

const str: 'name' = 'name'

const number : 1 = 1

type Directing = 'Up'|'Down'|'Left'|'Right'

const toWhere : Directing = 'Down'



interface IName {
    name: string
}

type IPerson = IName & {age: number}

let person:IPerson = {name: '123',age:12}




